package com.sjq.common.service;

import java.util.List;
import java.util.Map;

import com.sjq.common.entity.MenuTree;
import com.sjq.common.exception.DataAccessException;
import com.sjq.common.exception.ServiceException;

public interface MenuTreeService {

	public List<Map<String, Object>> findAllJsTree()throws ServiceException;

	public MenuTree findSingleJsTree(String pid)throws ServiceException;
	
	public List<Map<String, Object>> findJsTreeChildren()throws ServiceException;

	public MenuTree findSingleMenu(String menuId)throws ServiceException;
	
	public void addMenu(MenuTree menu)throws ServiceException;
	
	public void modifyMenu(MenuTree menu)throws ServiceException;

	//删除已授权菜单
	public void removePrivilege(String menuId)throws ServiceException;
	//删除菜单资源
	public void removePermission(String menuId)throws ServiceException;
	//删除菜单
	public void removeMenu(String menuId)throws ServiceException;
	//根据pid查询菜单
	public List<Map<String, Object>> findMenuNameByPid(String pid)throws DataAccessException;
	
	/***插入权限组****/
	public void updatePrivilege(String nodeArray,String authorityId)throws ServiceException;
	/***根据权限查询ID所有节点的****/
	public List<Map<String, String>> queryMenusByAuthority(String authorityId) ;
}
